﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;

using Skyhook.Core;
using Skyhook.Core.Input;

namespace Skyhook.Landscape
{
    public class LandscapeComponent : ApplicationComponent
    {
        LandscapeView View = null;
        LandscapeModel Model = null;
        
        public LandscapeComponent()
            : base()
        {
            Model = new LandscapeModel();
            View = new LandscapeView(Model);
        }

        protected override void Initialize()
        {
            Model.Initialize();
            View.Initialize();
        }

        protected override void LoadContent()
        {   
        }

        protected override void Update(GameTime time)
        {
        }

        protected override void Draw(GameTime time)
        {
            View.Draw(time);
        }

        public void Scroll(int dx, int dy)
        {
            View.Scroll(dx, dy);
        }
    }
}
